package com.wolfpire.chapter.service;

import java.util.List;
import java.util.Map;

import com.wolfpire.system.common.Page;
import com.wolfpire.system.common.base.service.IBaseHibernateService;
import com.wolfpire.system.model.Chapter;
import com.wolfpire.system.model.Knowledge;
import com.wolfpire.system.model.Subject;
import com.wolfpire.system.model.User;

/**
 * 知识点模块 业务层接口
 * @author xp
 *
 */
public interface ChapterService extends IBaseHibernateService<Chapter, Long> {
	
	
	/**
	 * 获取账户信息
	 * @param account
	 * @return
	 */
	public Chapter getByName(String name);
	
	/**
	 * 查询用户列表(带分页)
	 * @param page<User> 
	 * @param filterUser
	 * @return
	 */
	public Page<Chapter> setPageDataList(Page<Chapter> page, Chapter filterChapter);
	
	/**
	 * 根据专业ID获取用户
	 * @param orgId
	 * @return
	 */
	public List<Chapter> getChaptersBySubjectId(Long subjectId);
	
	/**
	 * 获取完整信息的用户
	 * @param id	用户主键Id
	 * @return
	 */
	public Chapter getCompleteChapter(Long id);
	
	public List<Map<String, Object>> bulidTree(Chapter chapter);
	/**
	 * 根据学科ID获取章节
	 * @param subjectId
	 * @return
	 */
	public List<Chapter> getBySubjectId(long subjectId);
	
	
	
	
	
}
